package linwen.wang.application.impl.v5;

import linwen.wang.joinMemory.annotation.JoinInMemory;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author wlw
 * @date 2023/4/9 12:24 AM
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@JoinInMemory(keyFromSourceData = "",
        keyFromJoinData = "#{id}",
        loader = "#{@addressServiceImpl.listByIds(#root)}",
        joinDataConverter = "#{@addressConvertMapperImpl.addressConvertAddressVO(#root)}")
public @interface JoinAddressVOOnId {
    @AliasFor(
            annotation = JoinInMemory.class
    )

    String keyFromSourceData();
}
